home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 316 / libsrc / printf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-20  |  248 b   |  18 lines

  1.  
  2. #include <stdio.h>
  3.  
  4. void __printf_putc(c)
  5. char c;
  6. {
  7.   fputc(c, stdout);
  8. }
  9.  
  10. void printf(template, args)
  11. char * template;
  12. long args;
  13. {
  14.   _printf_guts(template, &args, __printf_putc);
  15.   if (isatty(fileno(stdout)))
  16.     fflush(stdout);
  17. }
  18.